import Abstract from '../views/common/abstract.vue';
const releRoles = r => require.ensure([], () => r(require('../views/releRoles.vue')), 'chunkname1')
// const releGroup = r => require.ensure([], () => r(require('../views/releGroup.vue')), 'chunkname2')
// import releGroup from '../views/releGroup.vue'
import users from '../views/users.vue'

export default [{
  path: '/',
  name: '首页',
  component: (resolve) => require(['../views/index.vue'], resolve),
  children: [  
    {
      path:'/website',
      name:'网站运营',
      des:'authlist',//判断是否展开导航
      
      meta: {
        // name: '权限管理列表项'
        icon: '&#xe62e;',
        icon_img:require("../assets/img/key.png"),

      },
      // component: (resolve) => require(['../views/index.vue'], resolve),
      component:Abstract,

      children:[
       {
          path: 'articlemanage',
          name: '文章管理',
          meta: {
            name: '文章管理',
            icon_img:'',
            des:'articlemanage',//判断是否选中导航

          },
          component: (resolve) => require(['../website/articlemanage.vue'], resolve),
         
        },
        {
          path: 'articlestyle',
          name: '文章类型',
          meta: {
            name: '文章类型',
            icon_img:'',
            des:'articlestyle',          

          },
          component: (resolve) => require(['../website/articlestyle.vue'], resolve),
          
        },
        {
          path: 'authorityset',
          name: '资源配置',
          meta: {
            name: '资源配置',
            icon_img:'',
            des:'authorityset',

          },
          component: (resolve) => require(['../website/authorityset.vue'], resolve),
          children:[
            {
              path: 'authorityedit',
              name: '资源编辑',
              meta: {
               icon_img:'',
                des:'authorityset',

              },
              component:(resolve) => require(['../website/authorityedit.vue'], resolve),              
              hidden:true
            }
          ]
        },       
      ]
    },    
  ]
}];